(function(){ var sfVerifyLogo = { logoimg: 'https://示范单位.注册局.网址/ui/images/logo.png', h: '47', imgUrl: 'https://注册局.网址/shifan?sn=CDAM202309151152FUYFUT&type=1', domain: '大连精工.网址', init:function(){ var that = this,imgHeight = 0,imgWidth = 0; if (sfVerifyLogo.h) { imgHeight = Math.abs(sfVerifyLogo.h); } else { imgHeight = 47; } var wHCss = 'width:' + imgHeight + 'px;height:' + imgHeight + 'px; display:inline-block;', imgCss = 'height:'+ imgHeight +'px; display:block;'; var html = '\ 本站网址:'+sfVerifyLogo.domain+'\ ', scriptDom = document.getElementById('SFBScript'); scriptDom ? this.insertAfter(html, scriptDom) : document.write(html); }, insertAfter: function (newElement, targetElement) { var parent = targetElement.parentNode; if (parent.lastChild == targetElement) { if(typeof newElement === 'string'){ var temp = document.createElement('div'); temp.innerHTML = newElement; var frag = document.createDocumentFragment(); while (temp.firstChild) { frag.appendChild(temp.firstChild); } parent.appendChild(frag); }else{ parent.appendChild(newElement); } } else { if(typeof newElement === 'string'){ var temp = document.createElement('div'); temp.innerHTML = newElement; var frag = document.createDocumentFragment(); while (temp.firstChild) { frag.appendChild(temp.firstChild); } parent.insertBefore(frag, targetElement.nextSibling); }else{ parent.insertBefore(newElement, targetElement.nextSibling); } } } }; sfVerifyLogo.init(); })();